package minijava.Frame.Mips;

import minijava.ArvoreIntermediaria.*;

public class InFrame extends minijava.Frame.Access {
    int offset;
    InFrame(int o) {
	offset = o;
    }

    public Expr exp(Expr fp) {
        return new MEM
	    (new BINOP(BINOP.PLUS, fp, new CONST(offset)));
    }

    @Override
    public String toString() {
        Integer loffset = new Integer(this.offset);
	return loffset.toString();
    }
}
